using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class cooMap : EntityTypeConfiguration<coo>
    {
        public cooMap()
        {
            // Primary Key
            this.HasKey(t => new { t.tooth_nb, t.tooth_y, t.tooth_x, t.shx, t.shy, t.crn_x, t.crn_y, t.crn_w, t.crn_h, t.bld1_y, t.bld1_x, t.bld2_y, t.bld2_x, t.bld3_y, t.bld3_x, t.imp_y, t.imp_x, t.abs1_x, t.abs1_y, t.abs2_x, t.abs2_y, t.abs3_x, t.abs3_y, t.endow1, t.endow2, t.endow3, t.endoh1, t.endoh2, t.endoh4, t.endoh3, t.endo11_x, t.endo11_y, t.endo12_y, t.endo12_x, t.endo21_x, t.endo21_y, t.endo22_x, t.endo22_y, t.endo31_y, t.endo31_x, t.endo32_y, t.endo32_x, t.cir_x, t.cir_y, t.f1_x, t.f1_y, t.f2_x, t.f2_y, t.f3_x, t.f3_y, t.f4_x, t.f4_y, t.x00, t.y00, t.f5_y, t.f5_x, t.xw, t.yw, t.nb_y, t.nb_x, t.bcrn_x, t.bcrn_y, t.bcrn_w, t.bcrn_h, t.bcrn1_x, t.bcrn1_y, t.bcrn1_w, t.bcrn1_h, t.linkr_x, t.linkr_y, t.linkr_h, t.linkr_w, t.linkl_x, t.linkl_y, t.linkl_w, t.linkl_h });

            // Properties
            this.Property(t => t.tooth_nb)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.tooth_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.tooth_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.shx)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.shy)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.crn_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.crn_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.crn_w)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.crn_h)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld1_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld1_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld2_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld2_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld3_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bld3_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.imp_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.imp_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs1_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs1_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs2_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs2_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs3_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.abs3_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endow1)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endow2)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endow3)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endoh1)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endoh2)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endoh4)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endoh3)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo11_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo11_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo12_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo12_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo21_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo21_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo22_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo22_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo31_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo31_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo32_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.endo32_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.cir_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.cir_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f1_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f1_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f2_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f2_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f3_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f3_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f4_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f4_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.x00)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.y00)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f5_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.f5_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.xw)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.yw)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.nb_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.nb_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn_w)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn_h)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn1_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn1_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn1_w)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.bcrn1_h)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkr_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkr_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkr_h)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkr_w)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkl_x)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkl_y)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkl_w)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.linkl_h)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("coo");
            this.Property(t => t.tooth_nb).HasColumnName("tooth_nb");
            this.Property(t => t.tooth_y).HasColumnName("tooth_y");
            this.Property(t => t.tooth_x).HasColumnName("tooth_x");
            this.Property(t => t.shx).HasColumnName("shx");
            this.Property(t => t.shy).HasColumnName("shy");
            this.Property(t => t.crn_x).HasColumnName("crn_x");
            this.Property(t => t.crn_y).HasColumnName("crn_y");
            this.Property(t => t.crn_w).HasColumnName("crn_w");
            this.Property(t => t.crn_h).HasColumnName("crn_h");
            this.Property(t => t.bld1_y).HasColumnName("bld1_y");
            this.Property(t => t.bld1_x).HasColumnName("bld1_x");
            this.Property(t => t.bld2_y).HasColumnName("bld2_y");
            this.Property(t => t.bld2_x).HasColumnName("bld2_x");
            this.Property(t => t.bld3_y).HasColumnName("bld3_y");
            this.Property(t => t.bld3_x).HasColumnName("bld3_x");
            this.Property(t => t.imp_y).HasColumnName("imp_y");
            this.Property(t => t.imp_x).HasColumnName("imp_x");
            this.Property(t => t.abs1_x).HasColumnName("abs1_x");
            this.Property(t => t.abs1_y).HasColumnName("abs1_y");
            this.Property(t => t.abs2_x).HasColumnName("abs2_x");
            this.Property(t => t.abs2_y).HasColumnName("abs2_y");
            this.Property(t => t.abs3_x).HasColumnName("abs3_x");
            this.Property(t => t.abs3_y).HasColumnName("abs3_y");
            this.Property(t => t.endow1).HasColumnName("endow1");
            this.Property(t => t.endow2).HasColumnName("endow2");
            this.Property(t => t.endow3).HasColumnName("endow3");
            this.Property(t => t.endoh1).HasColumnName("endoh1");
            this.Property(t => t.endoh2).HasColumnName("endoh2");
            this.Property(t => t.endoh4).HasColumnName("endoh4");
            this.Property(t => t.endoh3).HasColumnName("endoh3");
            this.Property(t => t.endo11_x).HasColumnName("endo11_x");
            this.Property(t => t.endo11_y).HasColumnName("endo11_y");
            this.Property(t => t.endo12_y).HasColumnName("endo12_y");
            this.Property(t => t.endo12_x).HasColumnName("endo12_x");
            this.Property(t => t.endo21_x).HasColumnName("endo21_x");
            this.Property(t => t.endo21_y).HasColumnName("endo21_y");
            this.Property(t => t.endo22_x).HasColumnName("endo22_x");
            this.Property(t => t.endo22_y).HasColumnName("endo22_y");
            this.Property(t => t.endo31_y).HasColumnName("endo31_y");
            this.Property(t => t.endo31_x).HasColumnName("endo31_x");
            this.Property(t => t.endo32_y).HasColumnName("endo32_y");
            this.Property(t => t.endo32_x).HasColumnName("endo32_x");
            this.Property(t => t.cir_x).HasColumnName("cir_x");
            this.Property(t => t.cir_y).HasColumnName("cir_y");
            this.Property(t => t.f1_x).HasColumnName("f1_x");
            this.Property(t => t.f1_y).HasColumnName("f1_y");
            this.Property(t => t.f2_x).HasColumnName("f2_x");
            this.Property(t => t.f2_y).HasColumnName("f2_y");
            this.Property(t => t.f3_x).HasColumnName("f3_x");
            this.Property(t => t.f3_y).HasColumnName("f3_y");
            this.Property(t => t.f4_x).HasColumnName("f4_x");
            this.Property(t => t.f4_y).HasColumnName("f4_y");
            this.Property(t => t.x00).HasColumnName("x00");
            this.Property(t => t.y00).HasColumnName("y00");
            this.Property(t => t.f5_y).HasColumnName("f5_y");
            this.Property(t => t.f5_x).HasColumnName("f5_x");
            this.Property(t => t.xw).HasColumnName("xw");
            this.Property(t => t.yw).HasColumnName("yw");
            this.Property(t => t.nb_y).HasColumnName("nb_y");
            this.Property(t => t.nb_x).HasColumnName("nb_x");
            this.Property(t => t.bcrn_x).HasColumnName("bcrn_x");
            this.Property(t => t.bcrn_y).HasColumnName("bcrn_y");
            this.Property(t => t.bcrn_w).HasColumnName("bcrn_w");
            this.Property(t => t.bcrn_h).HasColumnName("bcrn_h");
            this.Property(t => t.bcrn1_x).HasColumnName("bcrn1_x");
            this.Property(t => t.bcrn1_y).HasColumnName("bcrn1_y");
            this.Property(t => t.bcrn1_w).HasColumnName("bcrn1_w");
            this.Property(t => t.bcrn1_h).HasColumnName("bcrn1_h");
            this.Property(t => t.linkr_x).HasColumnName("linkr_x");
            this.Property(t => t.linkr_y).HasColumnName("linkr_y");
            this.Property(t => t.linkr_h).HasColumnName("linkr_h");
            this.Property(t => t.linkr_w).HasColumnName("linkr_w");
            this.Property(t => t.linkl_x).HasColumnName("linkl_x");
            this.Property(t => t.linkl_y).HasColumnName("linkl_y");
            this.Property(t => t.linkl_w).HasColumnName("linkl_w");
            this.Property(t => t.linkl_h).HasColumnName("linkl_h");
        }
    }
}
